package com.exam.domain.entity;

import java.util.Date;
import java.util.List;

public class Exam {
    private Integer examId;
    private String title;
    private Integer questionCount;
    private Integer scorePerQuestion;
    // inactive/active
    private String status;
    private Integer createdBy;

    // 额外添加的数据，老师名称
    private String teacherName;

    private Date createdAt;

    // 标识是否交过卷，1表示提交了
    private Integer isSubmit;


    // 查询试卷中包含的题目
    private List<Question> questions;

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(Integer questionCount) {
        this.questionCount = questionCount;
    }

    public Integer getScorePerQuestion() {
        return scorePerQuestion;
    }

    public void setScorePerQuestion(Integer scorePerQuestion) {
        this.scorePerQuestion = scorePerQuestion;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }


    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    public Integer getIsSubmit() {
        return isSubmit;
    }

    public void setIsSubmit(Integer isSubmit) {
        this.isSubmit = isSubmit;
    }

    @Override
    public String toString() {
        return "Exam{" +
                "examId=" + examId +
                ", title='" + title + '\'' +
                ", questionCount=" + questionCount +
                ", scorePerQuestion=" + scorePerQuestion +
                ", status='" + status + '\'' +
                ", createdBy=" + createdBy +
                ", teacherName='" + teacherName + '\'' +
                ", createdAt=" + createdAt +
                ", isSubmit=" + isSubmit +
                ", questions=" + questions +
                '}';
    }
}
